import { createAPI } from '@/utils/request'
// 获取简单列表
export const searchitem = data => createAPI('/subjects/simple', 'get', data)
// 获取学科列表
export const subjects = data => createAPI('/subjects', 'get', data)
// 学科增加
export const subjectsadd = data => createAPI('/subjects', 'post', data)

// 删除
export const rowsubjects = id => createAPI('/subjects/:id', 'DELETE', id)
// 详情
export const revasubjects = data => createAPI(`/subjects/${data.id}`, 'get', data)
// 修改
export const update = data => createAPI(`/subjects/${data.id}`, 'put', data)
